class Player08(){
    val name:String
    private fun firstLetter() = name[0]
    init {
        //会报错，name要在上面才行
        println(firstLetter())
        name = "jack"
    }
}

fun main() {
    Player08()
}